import request from '@/axios'

//分页获取权限配置
export const pageApi = (data) => {
  return request.post({ url: '/rbac-server/rbac/permission/page', data })
}

//新增权限配置
export const addApi = (data) => {
  return request.post({ url: '/rbac-server/rbac/permission/add', data })
}
//获取权限配置
export const getApi = (params) => {
  return request.get({ url: '/rbac-server/rbac/permission/get', params })
}
//删除权限配置
export const delApi = (id) => {
  return request.delete({ url: '/rbac-server/rbac/permission/delete', params: { id } })
}
//修改权限配置
export const updateApi = (data) => {
  return request.put({ url: '/rbac-server/rbac/permission/update', data })
}
